# Maintainer: Willow Barraco <contact@willowbarraco.fr>
pkgname=hare-cairo
pkgver=0_git20231112
_commit=91e7381f29e57f58e4350b8c72b0dced289da364
pkgrel=1
pkgdesc="Hare interface to the cairo 2D graphics library"
url="https://sr.ht/~une/hare-cairo"
# Currently doesn't build on riscv64
arch="x86_64 aarch64" # hare
license="MPL-1.1"
makedepends="hare"
source="
	$pkgname-codeberg-$_commit.tar.gz::https://codeberg.org/une/hare-cairo/archive/$_commit.tar.gz
"
builddir="$srcdir/$pkgname"

build() {
	make -j1 PREFIX=/usr
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}
sha512sums="
1ac40f5d4a7a2d2eaa11e37a068896d376a1c2c567fe3e9da9609ca59947f88e9579eadf25dcbbb2b6f26b24747e57a7507fa8fcf6553a36729471a70cf6311d  hare-cairo-codeberg-91e7381f29e57f58e4350b8c72b0dced289da364.tar.gz
"
